<?php
defined('BASEPATH') OR exit('No direct script access allowed');

$config['base_url'] = '';
$config['index_page'] = 'index.php';
$config['uri_protocol']	= 'AUTO';
$config['url_suffix'] = '';
$config['language']	= 'english';
$config['charset'] = 'UTF-8';
$config['enable_hooks'] = FALSE;
$config['subclass_prefix'] = 'MY_';
//$config['composer_autoload'] = FALSE;
$config['composer_autoload'] = FCPATH.'vendor/autoload.php';

$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\+\-';
$config['enable_query_strings'] = FALSE;
$config['controller_trigger'] = 'c';
$config['function_trigger'] = 'm';
$config['directory_trigger'] = 'd';

$config['allow_get_array'] = TRUE;
$config['log_threshold'] = 1;
$config['log_path'] = '';
$config['log_file_extension'] = '';
$config['log_file_permissions'] = 0644;
$config['log_date_format'] = 'Y-m-d H:i:s';

$config['error_views_path'] = '';
$config['cache_path'] = '';
$config['cache_query_string'] = FALSE;
$config['encryption_key'] = '';

$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = FCPATH.'public/sess_save_path';;
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;

$config['cookie_prefix']	= '';
$config['cookie_domain']	= '';
$config['cookie_path']		= '/';
$config['cookie_secure']	= FALSE;
$config['cookie_httponly'] 	= FALSE;

$config['standardize_newlines'] = FALSE;
$config['global_xss_filtering'] = FALSE;

$config['csrf_protection'] = TRUE;
$config['csrf_token_name'] = 'csrf_test_name';
$config['csrf_cookie_name'] = 'csrf_cookie_name';
$config['csrf_expire'] = 7200;
$config['csrf_regenerate'] = TRUE;
$config['csrf_exclude_uris'] = array(
    "manage/pubfun/editor_upload_img",
    "manage/pubfun/upload_img",
    "manage/goods/info_set",
    "manage/goods/voucher_set",
    "manage/goods/pics_set",

);
//加载例外
require_once "csrfuris.php";
$config['compress_output'] = FALSE;
$config['time_reference'] = 'local';
$config['rewrite_short_tags'] = FALSE;
$config['proxy_ips'] = '';

// 消息推送
$config['push_api_url'] = 'http://socket.91shunshi.com:2121/';
$config['socket_io_url'] = 'http://socket.91shunshi.com:2120';
//$config['app_push_url'] = 'tcp://socket.91shunshi.com:5678';
$config['app_push_url'] = 'tcp://111.230.186.215:5678';

//$config['push_api_url'] = 'http://111.230.186.215:2121/';
//$config['push_api_url'] = 'http://111.230.186.215:2121/';
//$config['socket_io_url'] = 'http://111.230.186.215:2120';
//$config['app_push_url'] = 'tcp://111.230.186.215:5678';
// 微信
$config['app_id'] = 'wx42aa5e455dd671a0';
$config['app_secret'] = '0c1c2cfabc6f5fed565c29c1b269af45';
$config['payment'] = [
    'merchant_id'=> '1503179621',
    'key'=> 'UI143fp1F2JO1kPkcooW4kp4Po8forI3',
    'cert_path'=> '/home/www/web/wwwroot/wechat_cert/apiclient_cert.pem',
    'key_path'=> '/home/www/web/wwwroot/wechat_cert/apiclient_key.pem',
    'notify_url'=>'http://www.jianlou.shop/index.php/api/wxorder/notice'
];
$config['ios_app_id'] = 'wx16935fb19a1f43cb';
$config['ios_app_secret'] = '9d032cd30ae45d9b060e97c0fffe6316';
//$config['ios_app_id'] = 'wx70de16eca0745c95';
//$config['ios_app_secret'] = '618a105a2d4f38c69a8d7091e0e007e9';
$config['ios_payment'] = [
  	 'merchant_id'=> '1503427111',
   // 'merchant_id'=> '1501923991',
    'key'=> 'UI143fp1F2JO1kPkcooW4kp4Po8forI3',
    'cert_path'=> '/home/www/web/wwwroot/wechat_cert/apiclient_cert.pem',
    'key_path'=> '/home/www/web/wwwroot/wechat_cert/apiclient_key.pem',
    'notify_url'=>'http://api.jianlou.shop/index.php/api/wxorder/app_notice'
];

$config['h5_app_id'] = 'wx42aa5e455dd671a0';
$config['h5_app_secret'] = '0c1c2cfabc6f5fed565c29c1b269af45';
$config['h5_payment'] = [
    'merchant_id'=> '1503179621',
    'key'=> 'UI143fp1F2JO1kPkcooW4kp4Po8forI3',
    'cert_path'=> '/home/www/web/wwwroot/wechat_cert/apiclient_cert.pem',
    'key_path'=> '/home/www/web/wwwroot/wechat_cert/apiclient_key.pem',
    'notify_url'=>'http://api.jianlou.shop/index.php/api/wxorder/notice'
];

$config['test_app_id'] = 'wx42aa5e455dd671a0';
$config['test_app_secret'] = '0c1c2cfabc6f5fed565c29c1b269af45';
$config['sms_url'] = 'http://sms.jianlou.shop/';